<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<!-- <script src="https://unpkg.com/vue@next"></script> -->
		<script src="js/v2.6.10/vue.js"></script>
	</head>
	<body>
		<div id="app">
			<h1>Hello</h1>

            <h1 v-for="(item,index) in data">
			        {{item}}
			</h1> 
			
			<input type="submit" v-for="(item,index) in taxt" value="我是新增的按钮"/>{{item}}
			<hr />
			<input type="submit" @click.once="collect" value="点我新增一行" />
			<input type="submit" @click="add" value="点我新增一个按钮" />
			
		</div>
		
		<script>
		 var i = new Vue({
			 el:"#app",
			 data:{
				data:[],
				taxt:[]
			 },
			 methods:{
				 collect(){
					 this.data.push("Hello 少年!")
				 },
				 add(){
					 this.taxt.push(this)
				 }
			 }
		 })
		</script>
	</body>
</html>
